<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<html>
    <body>
    	<c:choose>
            <c:when test="${user == null}">
                <p>
                    Hello!<a href="${loginUrl}">Sign in</a>
                    to include your name with greetings you post.
                </p>
            </c:when>
            <c:otherwise>
                <p>
                    Hello, ${user.nickname}! (You can <a href="${logoutUrl}">sign out</a>.)
                </p>
            </c:otherwise>
        </c:choose>
        <p>
            ${msg}
        </p>
    </body>
</html>
